<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script type="text/javascript" src="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js"></script>
  <style>
    div {
      width: 400px;
      margin: 100px auto 0;
    }
  </style>
</head>
<body>
  <div id="g2-chart"></div>
  <script>
    const chartDom = document.getElementById('g2-chart')
    const line = new G2Plot.Line(chartDom, {
      title: {
        visible: true,
        text: 'G2',
      },
      description: {
        visible: true,
        text: 'G2 666'
      },
      data: [
        { year: '1991', value: 3 },
        { year: '1992', value: 4},
        { year: '1993', value: 3.5 },
        { year: '1994', value: 5 },
      ],
      xField: 'year',
      yField: 'value',
      point: {
        visible: true
      }
    })
    line.render()
  </script>
</body>
</html>